package com.weds.edpf.core.mapper;

import com.weds.core.annotation.MyBatisDao;
import com.weds.edpf.core.entity.NTtCardEntity;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 卡 种类表
 * @Author wangjianqiang
 * @Description 管理
 * @Date 2020-06-16
 */
@MyBatisDao
public interface NTtCardMapper {
    /**
     */
    int deleteByPrimaryKey(Integer ttXh);

    /**
     */
    int insert(NTtCardEntity record);

    /**
     */
    int insertBatch(@Param("list") List<NTtCardEntity> list);

    /**
     */
    int insertSelective(NTtCardEntity record);

    /**
     */
    NTtCardEntity selectByPrimaryKey(Integer ttXh);

    /**
     */
    int updateByPrimaryKeySelective(NTtCardEntity record);

    /**
     */
    int updateByPrimaryKey(NTtCardEntity record);

    /**
     */
    List<NTtCardEntity> selectListByEntity(NTtCardEntity record);

    /**
     */
    int deleteBatchByKeys(@Param("list") List<NTtCardEntity> list);

    /**
     * 获取卡片类型
     * @param record
     * @return
     */
    NTtCardEntity selectCardType(NTtCardEntity record);


    /**
     * 获取发卡器列表
     * @param ttLx
     * @return
     */
    List<NTtCardEntity> selectByTtLx(Integer ttLx);

    /**
     *
     * @param cardSerial
     * @return
     */
    NTtCardEntity selectByCardServial(String cardSerial);

}